<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <div></div>
    <div></div>
    <body>
        <script>
            // ... 用来把数组的值变成带逗号的参数序列,在实参或者数组里使用
            // const arr = ["天明","少羽","大叔"];
            // function a(){
            //     console.log(arguments);
            // };
            // a(...arr);

            //应用:1.数组的合并
            // const a = ["天明", "少羽", "大叔"];
            // const b = ["李星云","大帅","姬如雪"];
            // const c = [...a,...b];
            // console.log(c);

            //2.数组的克隆
            // const arr = ["李星云", "大帅","姬如雪"];
            // const brr = [...arr];
            // console.log(brr);

            //3、把伪数组转化为数组
            let divs = document.querySelectorAll("div");
            const arr = [...divs];
            console.log(arr);
        </script>
    </body>
</html>